import http from "@/common/http.js"

export const chargingCabinet = (url, method, data) => {
  return http({
    url: '/api/routineChargingCabinet' + url
  }, method, data)
}

// 收藏
export const collect = (url, method, data) => {
  return http({
    url: '/api/fUserChargingCabinetController' + url
  }, method, data)
}
// 消息
export const messageMsg = (url, method, data) => {
  return http({
    url: '/api/messageUserController' + url
  }, method, data)
}

// 订单
export const order = (url, method, data) => {
  return http({
    url: '/api/buChargingOrderController' + url
  }, method, data)
}

// 套餐包
export const chargePackage = (url, method, data) => {
  return http({
    url: '/api/charging/package' + url
  }, method, data)
}
// 发起充电
export const createOrder = (url, method, data) => {
  return http({
    url: '/api/business' + url
  }, method, data)
}

export const createOrder2 = (url, method, data) => {
  return http({
    url: '/api/business2' + url
  }, method, data)
}
// 是否白名单用户
export const isWhiteList = (url, method, data) => {
  return http({
    url: '/api/chargingWhiteList' + url
  }, method, data)
}
export const charging = (url, method, data) => {
  return http({
    url: '/api/user/charging' + url
  }, method, data)
}
// 枚举
export const enums = (url,method, data) => {
  return http({
    url: '/api/enum' + url
  }, method, data)
}